package com.framework.tools;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.framework.persist.ORMapper;

public class DBPKColumnInfoORMapper implements ORMapper{

	public DBPKColumnInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		DBPKColumnInfo pkInfo = new DBPKColumnInfo();
		pkInfo.setColumnName(rs.getString("COLUMN_NAME"));
		pkInfo.setKeySeq(rs.getShort("KEY_SEQ"));
		pkInfo.setPkName(rs.getString("PK_NAME"));
		pkInfo.setTableCat(rs.getString("TABLE_CAT"));
		pkInfo.setTableName(rs.getString("TABLE_NAME"));
		pkInfo.setTableSchem(rs.getString("TABLE_SCHEM"));
		return pkInfo;
	}

}
